#!/usr/bin/env python
# -*- coding: UTF-8 -*-
"""
@Project : bigDataProject 
@File    : faker_control.py
@IDE     : PyCharm 
@Author  : Mario
@Date    : 2022/11/10 12:03 
@Describe: faker假数据
"""
from typing import Text
from faker import Faker


class FakerControl:
    def __init__(self, language: Text = 'zh-CN'):
        """
        构造函数
        :param language: 语言，默认中文
        简体中文：zh_CN
        繁体中文：zh_TW
        美国英文：en_US
        英国英文：en_GB
        韩文：ko_KR
        日文：ja_JP
        """
        self.faker = Faker(locale=language)

    def get_female_name(self) -> Text:
        """
        @return: 女生姓名
        """
        female_name = self.faker.name_female()
        return female_name

    def get_male_name(self) -> Text:
        """
        @return: 男生姓名
        """
        male_name = self.faker.name_male()
        return male_name

    def get_ssn(self) -> Text:
        """
        @return: 身份证号码
        """
        ssn = self.faker.ssn()
        return ssn

    def get_phone_number(self) -> Text:
        """
        @return: 手机号码
        """
        phone_number = self.faker.phone_number()
        return phone_number

    def get_address(self) -> Text:
        """
        @return: 详细地址
        """
        address = self.faker.address()
        return address

    def get_user_agent(self) -> Text:
        """
        @return: user_agent
        """
        user_agent = self.faker.chrome()
        return user_agent

    def get_email(self) -> Text:
        """
        @return: 邮箱
        """
        email = self.faker.email()
        return email


if __name__ == '__main__':
    print(FakerControl().get_email())
